<template>
  <div>
    <loginDialog class="dialog" width="740px" :show-dialog.sync="showDialog1" title="平台提示">
      <div class="dialog-content">
        <div class="dialog-item">
          <div class="dialog-icon"><img src="~/assets/images/bindphone.png" alt="" /></div>
          <div class="dialog-text">
            <p>绑定手机号</p>
            <span>请绑定与您微信一致的手机号,以便您使用手机号快捷登录</span>
          </div>
          <div v-if="bindInfo.phone === 1" class="dialong-btn">已完善</div>
          <div v-else class="dialong-nbtn" @click="$router.push({ name: 'Login' })">立即完善</div>
        </div>

        <div class="dialog-item">
          <div class="dialog-icon"><img src="~/assets/images/bindisg.png" alt="" /></div>
          <div class="dialog-text">
            <p>完善个人信息</p>
            <span>完善个人信息后，您可以正常浏览、搜索、收藏相关产品和企业。</span>
          </div>
          <div v-if="bindInfo.user_info === 1" class="dialong-btn">已完善</div>
          <div v-else class="dialong-nbtn" @click="$router.push({ name: 'PersonalSettings' })">立即完善</div>
          <div class="nobind">未完善</div>
        </div>

        <div class="dialog-item">
          <div class="dialog-icon"><img src="~/assets/images/bindid.png" alt="" /></div>
          <div class="dialog-text">
            <p>实名认证</p>
            <span>实名认证后，您可以使用找包装网发布需求、询价、购买、查看企业联系方式等功能</span>
          </div>
          <div class="dialong-nbtn" @click="$router.push({ name: 'PersonalSettings' })">立即完善</div>
          <div class="nobind">未完善</div>
        </div>
      </div>
    </loginDialog>
  </div>
</template>
<script>
import loginDialog from './children/loginDialog';

export default {
  name: 'platformTip',
  components: {
    loginDialog
  },
  props: ['bindInfo'],
  data() {
    return {
      showDialog1: true
    };
  },
  methods: {
    cancel() {
      this.showDialog1 = false;
    }
  }
};
</script>
<style lang="scss" scoped>
.dialog .dialog-content {
  height: 250px;
  margin-bottom: 20px;
}

.dialog-item {
  width: 100%;
  height: 70px;
  margin-bottom: 20px;
}

.dialog-icon {
  width: 70px;
  height: 70px;
  float: left;
  margin: 0 10px;
}

.dialog-text {
  display: inline-block;
  width: 400px;
}

.dialog-text p {
  font-size: 20px;
  font-weight: bold;
  color: #666666;
}

.dialog-text span {
  font-size: 16px;
  color: #969696;
}

.dialong-btn {
  margin-top: 20px;
  width: 100px;
  height: 45px;
  float: right;
  text-align: center;
  line-height: 45px;
  font-size: 16px;
  color: #f8904a;
}

.dialong-nbtn {
  margin-top: 20px;
  width: 100px;
  height: 45px;
  float: right;
  text-align: center;
  line-height: 45px;
  border-radius: 10px;
  border: 1px solid #969696;
  cursor: pointer;
}

.nobind {
  font-size: 14px;
  color: #e44a2c;
  position: relative;
  left: 630px;
}
</style>
